<html>
<head>
<title>JavaScript Redirect</title>

<script>
if (window.testRunner) {
    testRunner.clearBackForwardList();
    testRunner.waitUntilDone();
}

window.onload = function() {
  setTimeout(function () {
    location.assign("resources/redirect-target.html#2");
  }, 0);
}
</script>
</head>

<body>
  This page uses location.assign after the load event.
  It must create a new history entry.
</body>
</html>
